<h1><%= t("configurations") %></h1>

<table class="index">
  <thead>
    <tr>
      <th><%= t("system") %></th>
      <th><%= t("description") %></th>
    </tr>
  </thead>
 <tbody>
    <%= hook :admin_configurations_menu do %>
		  <% if current_user.has_role? "admin"%>
    <tr>
      <td><%= link_to t("general_settings"), admin_general_settings_path %></td>
      <td><%= t("general_settings_description") %></td>
    </tr>
    <tr>
      <td><%= link_to t("mail_methods"), admin_mail_methods_path %></td>
      <td><%= t("email_server_settings_description") %></td>
    </tr>
 <tr>
     <td><%= link_to t("store_registration_payment_method"), store_registration_payment_method_path %></td>
      <td>Payment Method for Store registration</td>
    </tr>

		<%end%>
		  <% unless current_user.has_role? "admin"%>
       <tr>
      <td><%= link_to t("domain_customizes"), admin_domain_customizes_path %></td>
      <td><%= t("domain_customization") %></td>
    </tr>
    <tr>
      <td><%= link_to t("mail_methods"), admin_mail_methods_path %></td>
      <td><%= t("email_server_settings_description") %></td>
    </tr>

    <tr>
      <td><%= link_to t("tax_categories"), admin_tax_categories_path %></td>
      <td><%= t("tax_categories_setting_description") %></td>
    </tr>
    <tr>
      <td><%= link_to t("zones"), admin_zones_path %></td>
      <td><%= t("zone_setting_description") %></td>
    </tr>
			<%end%>

    <tr>
      <td><%= link_to t("states"), admin_country_states_path(Spree::Config[:default_country_id]) %></td>
      <td><%= t("state_setting_description") %></td>
    </tr>
		  <% unless current_user.has_role? "admin"%>
    <tr>
      <td><%= link_to t("payment_methods"), admin_payment_methods_path %></td>
      <td><%= t("payment_methods_setting_description") %></td>
    </tr>

    <tr>
      <td><%= link_to t("taxonomies"), admin_taxonomies_path %></td>
      <td><%= t("taxonomies_setting_description") %></td>
    </tr>
    <tr>
      <td><%= link_to t("shipping_methods"), admin_shipping_methods_path %></td>
      <td><%= t("shipping_methods_description") %></td>
    </tr>
    <tr>
      <td><%= link_to t("shipping_categories"), admin_shipping_categories_path %></td>
      <td><%= t("shipping_categories_description") %></td>
    </tr>
    <tr>
      <td><%= link_to t("inventory_settings"), admin_inventory_settings_path %></td>
      <td><%= t("inventory_setting_description") %></td>
    </tr>
    <tr>
      <td><%= link_to t("tax_rates"), admin_tax_rates_path %></td>
      <td><%= t("tax_rates_description") %></td>
    </tr>
    <tr>
      <td><%= link_to t("tax_settings"), admin_tax_settings_path %></td>
      <td><%= t("tax_settings_description") %></td>
    </tr>
			<%end%>

    <tr>
      <td><%= link_to t("analytics_trackers"), admin_trackers_path %></td>
      <td><%= t("google_analytics_setting_description") %></td>
    </tr>
 			<%end%>
  </tbody>
</table>
